package com.macro.mall.pojo;

import lombok.Data;

import java.util.Objects;

@Data
public class Opinion24HrsSta {

    private String id;
    private String createdDt;
    private String judge;

    private Integer neutral;
    private Integer positive;
    private Integer negative;
    private Integer total;


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Opinion24HrsSta that = (Opinion24HrsSta) o;
        return id.equals(that.id) &&
                createdDt.equals(that.createdDt) &&
                judge.equals(that.judge) &&
                neutral.equals(that.neutral) &&
                positive.equals(that.positive) &&
                negative.equals(that.negative);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, createdDt, judge, neutral, positive, negative);
    }

    @Override
    public String toString() {
        return "Opinion24HrsSta{" +
                "id='" + id + '\'' +
                ", createdDt='" + createdDt + '\'' +
                ", judge='" + judge + '\'' +
                ", neutral=" + neutral +
                ", positive=" + positive +
                ", negative=" + negative +
                '}';
    }
}
